package library.dao;

import java.util.List;

import library.domain.Entity;
import library.exception.DataException;

public interface Dao<Type extends Entity> {

    Integer create(Type entity) throws DataException;

    Type read(Integer identity) throws DataException;

    List<Type> readAll() throws DataException;

    void update(Type value) throws DataException;

    void delete(Integer identity) throws DataException;
}
